 <?php
$global=isSupperManagerForSession();
 ?>
<style type="text/css">
  .yg_inp>input{margin-bottom: 10px;}
#zc_detail table{margin:10px;}
#zc_detail table tr td{
	border: 1px solid #ddd;
	height:30px;
	padding-left:5px;
	padding-right:5px;
} 
</style>

<section class="topBanners">
         <div class="icon"></div>
         <div class="topBannersNav">
         <span data-url="/admin/my/bxlists" onclick="ContentLoadGo('/admin/my/bxlists')">我的报修</span>
         >
         <span data-url="/admin/my/bxinfoData" data-container="rt_content" data-param-id="<?php echo $info['id'] ?>"   class="topBannerItem">工单详情</span></div>
      </section>
 <section id="zc_detail">

      
     <input type="hidden" name="depthID" id="depthID" value="<?php echo $info['id'] ?>">
   <table class="ordertable" border="0" cellspacing="0" cellpadding="0">
     <?php
     
     if($info['type']=='0')
	{
     ?>
     <tr>
       
       <td width="120"><div align="right">申请人</div></td>
       <td width="150px"  class="tr_cons"><?php echo  $info['bxUser']['nickname']; ?></td>
     
       <td width="100"><div align="right">申请部门</div></td>
       <td width="150px"  class="tr_cons">
       <?php 
            if($info['bxSencodDept'])
			{
                     echo $info['bxSencodDept']['depname'];
			}else if($info['bxFirstDept'])
			{
                     echo $info['bxFirstDept']['depname'];
			}
       ?>
       </td>
       <td width="120"><div align="right">申请部门办公室号</div></td>
       <td width="150px"  class="tr_cons"><?php echo  $info['office_no']; ?></td>
       <td ></td>
       <td class="tr_cons">
       
       </td>
       </tr>
       <tr>
       <td width="120"><div align="right">申请人联系电话</div></td>
       <td width="150px"  class="tr_cons"><?php echo  $info['phone']; ?></td>
        <td width="100"><div align="right">申请时间</div></td>
       <td width="150px"  class="tr_cons">
       <?php 
         echo $info['stime'];
       ?>
       </td>
        <td ></td>
       <td class="tr_cons">
       
       </td>
       <td ></td>
       <td class="tr_cons">
       
       </td>
       
     </tr>
     <tr><td colspan='10'></td></tr>
     <tr>
    
       <td width="100"><div align="right" style="width:60px;">资产编号</div></td>
       <td width="150" class="tr_cons"><?php echo $zcInfo['dveid']; ?></td>
       <td width="100"><div align="right">资产名称</div></td>
       <td width="150px"  class="tr_cons"><?php echo $zcInfo['dvename']; ?></td>
        <td width="100"><div align="right">资产分类</div></td>
       <td width="150px"  class="tr_cons">
       <?php 
 		
  		if(!empty($zcInfo['type']))
		{
      	echo '['.$tDepListTemp[$zcInfo['type']]['dname']."]";
   		}
		else
		{
echo "[".$tDepListTemp[$zcInfo['first_type']]['dname']."]";
		}
?>
       </td>
        <td width="100"><div align="right">品牌</div></td>
       <td width="150px"  class="tr_cons"><?php echo $zcInfo['brand']; ?></td>
       
     </tr>
    
     
        <tr>
       <td><div align="right">序列号</div></td>
       <td width="150" class="tr_cons"><?php echo $zcInfo['sn']; ?></td>
       <td width="100"><div align="right">型号</div></td>
       <td width="150px"  class="tr_cons"><?php echo $zcInfo['model']; ?></td>
        <td width="100"><div align="right">入库时间</div></td>
       <td width="150px"  class="tr_cons">
       <?php echo $zcInfo['stime']; ?>
       </td>
        <td width="100"><div align="right">变更时间</div></td>
       <td width="150px"  class="tr_cons"><?php echo $info['etime']; ?></td>
       
     </tr>
     
     
        <tr>
       <td ><div align="right">属性</div></td>
       <td width="150" class="tr_cons">
       <?php 
       if($zcInfo['network']==0)
		{
		  echo '普通资产';
		}else
		{
			echo '网络设备';
		}
        ?>
        </td>
       <td width="100"><div align="right">数量</div></td>
       <td width="150px"  class="tr_cons">
       <?php echo $zcInfo['amount']; ?>
       </td>
        <td width="100"><div align="right">单位</div></td>
       <td width="150px"  class="tr_cons">
       <?php echo $zcInfo['unit']; ?>
       </td>
        <td width="100"><div align="right">价值</div></td>
       <td width="150px"  class="tr_cons"><?php echo $zcInfo['price']; ?>元</td>
       
     </tr>
    
    
    
        <tr>
       <td width="150"><div align="right">MAC</div></td>
       <td width="150" class="tr_cons">
       <?php 
       echo  $zcInfo['mac'];
		
        ?>
        </td>
       <td width="100"><div align="right">IP</div></td>
       <td width="150px"  class="tr_cons"><?php echo $zcInfo['ip']; ?></td>
        
        <td width="100"><div align="right">位置</div></td>
       <td width="150px"  class="tr_cons">
       <?php echo $zcInfo['addr']; ?>
       </td>
           <td width="100"><div align="right">状态</div></td>
       <td width="150px"  class="tr_cons">
      <?php
//0正常 1库存 2外借 3报废  4报修
  if($info['stat']==0)
	{
      echo "正常";
    }
    else if($info['stat']==1)
	{
		echo "库存";
    }else if($info['stat']==2)
	{
		echo "外借";
    }else if($info['stat']==3)
	{
		echo "报废";
    }else if($info['stat']==4)
	{
		echo "保修";
    }
    else if($info['stat']==0)
	{
		echo "提交";
    }
 
 ?>
       </td>
     </tr>
     
     
        <tr>
       
       <td><div align="right"  style="display:block;width:100px;">入库人账号</div></td>
       <td width="150px"  class="tr_cons"><?php echo  $zcInfo['rkUser']['uname']; ?></td>
        <td width="100"><div align="right">入库人姓名</div></td>
       <td width="150px"  class="tr_cons">
       <?php echo  $zcInfo['rkUser']['nickname']; ?>
       </td>
        <td><div align="right"  style="display:block;width:100px;"></div></td>
       <td width="150px"  class="tr_cons"></td>
       <td ><div align="right"></div></td>
       <td width="150" class="tr_cons">
      
        </td>
     </tr>
     <?php 
     }else
	 {
     ?>
     <tr>
       
       <td width="120"><div align="right">申请人</div></td>
       <td width="150px"  class="tr_cons"><?php echo  $info['bxUser']['nickname']; ?></td>
     
       <td width="100"><div align="right">申请部门</div></td>
       <td width="150px"  class="tr_cons">
       <?php 
            if($info['bxSencodDept'])
			{
                     echo $info['bxSencodDept']['depname'];
			}else if($info['bxFirstDept'])
			{
                     echo $info['bxFirstDept']['depname'];
			}
       ?>
       </td>
       <td width="120"><div align="right">申请部门办公室号</div></td>
       <td width="150px"  class="tr_cons"><?php echo  $info['office_no']; ?></td>
       </tr>
       <tr>
       <td width="120"><div align="right">申请人联系电话</div></td>
       <td width="150px"  class="tr_cons"><?php echo  $info['phone']; ?></td>
        <td width="100"><div align="right">申请时间</div></td>
       <td width="150px"  class="tr_cons">
       <?php 
         echo $info['stime'];
       ?>
       </td>
        <td ><div align="right">维修种类</div></td>
       <td class="tr_cons">
          <?php
          if($info['tcfg'])
			{
      		echo $info['tcfg'];
    		}
          ?>
       </td>
       
     </tr>
     <?php 
     }
     ?>
     <tr>
        <td ><div align="right" style="display:block;width:100px;">进度</div></td>
        <td colspan="7" style="width:100%;min-height:50px;">
        <div style="width:100%;padding:10px 4px;line-height:30px;">
        <?php
        echo $info['log'];
        ?>
        </div>
        </td>
     </tr>
        <tr>
        <td ><div align="right" style="display:block;width:100px;">描述</div></td>
        <td colspan="7" style="width:100%;min-height:50px;">
        <div style="width:100%;padding:10px 4px;line-height:30px;">
        <?php
        echo $info['conts'];
        ?>
        </div>
        </td>
     </tr>
     
     
     
   </table>
  
     
     </section>
     
     
       <script type="text/javascript">
      
      function myResearch(){
		   var url="/admin/my/bxinfoData";
		   var id=$("#depthID").val();
		   var param={
				 id:id
		   };
		   ContentGet(url,param);
	   }
     
      
           $(function(){
        	   //设置搜索栏
        	   $(".research").click(function(){
        		   var page =$(this).attr("page");
        		   $("#cpage").val(page);
        		   myResearch();
        		   
        	   });
        	   
        	   
        	   //编辑项
          	   $(".deal").click(function(){
          		   var that =this;
          		   var url="/admin/job/dealNew";
          		   var id=$("#depthID").val();
          		   var param={
          				   id:id
          		   };
          		  
          		   MyContentLoad(url,param);
          	
          				
          			 //弹出：确认按钮
          			
          	   });
          	//编辑项
          	   $(".baofei").click(function(){
          		   var that =this;
          		   var url="/admin/job/baofei";
          		   var id=$("#depthID").val();
          		   var param={
          				   id:id
          		   };
          		  
          		   MyContentLoad(url,param);
          	
          				
          			 //弹出：确认按钮
          			
          	   });
        	   
          	 
        	   
        	   //编辑项
        	   $(".depth").click(function(){
        		   var that =this;
        		   var url="/admin/devlist/depthData";
        		   var id=$("#depthID").val();
        		   var param={
        				   id:id
        		   };
        		   MyContentLoad(url,param);
        				 
        		  
        			 //弹出：确认按钮
        			
        	   });
        	   
        	   $(".depthlog").click(function(){
        		   var that =this;
        		   var url="/admin/devlist/depthlog";
        		   var id=$("#depthID").val();
        		   var param={
        				   id:id
        		   };
        		  // MyContentLoad(url,param);
        			ContentGet(url,param)	 
        				
        			 //弹出：确认按钮
        			
        	   });
        	   
        	   $(".baoxiulog").click(function(){
        		   var that =this;
        		   var url="/admin/devlist/baoxiulog";
        		   var id=$("#depthID").val();
        		   var param={
        				   id:id
        		   };
        		  // MyContentLoad(url,param);
        			ContentGet(url,param)	 
        				
        			 //弹出：确认按钮
        			
        	   });
        	   

        	   $(".resetPwd").click(function(){
        		   var that =this;
        		   var url="/admin/devlist/resetPwd";
        		   var id=$(that).parent().parent().attr('data-id');
        		   var param={
        				   id:id
        		   };
        		   MyContentLoad(url,param);
        				 
        				
        			 //弹出：确认按钮
        			
        	   });
        	   
        	   $(".info").click(function(){
        		   var that =this;
        		   var url="/admin/devlist/infoData";
        		   var id=$(that).parent().parent().attr('data-id');
        		   var param={
        				   id:id
        		   };
        		  // MyContentLoad(url,param);
        			ContentGet(url,param)	 
        				
        			 //弹出：确认按钮
        			
        	   });
        	   
        	  
  			   //全选
  		
  				$("#all").click(function(){   
			    	if(this.checked){   
			        	$(".checkBoxInput").attr("checked", true);  
			        	$(".checkBoxInput").prop("checked", true);  
			    	}else{   
						$(".checkBoxInput").attr("checked", false);
						$(".checkBoxInput").prop("checked", false);
			    	}   
			    	var se=getAllSelectItem();
			    	//console.log(se);
			 	}); 
  				 //导航
         	   $(".topBannerItem").click(function(){
         		   
         		   var attArr = $(this).attr();
             	   goToSelfLink(attArr);
             	   
         			
         	   });
  			   
  				 $(".firstTypeR").change(function(){
    				   
    				   var url="/admin/devlist/selectTypeChange";
    		   		    var id=$(this).val();
    		   		   
    		   		    var param={
    		   				   id:id
    		   				   
    		   		    };
    				   AjaxRequest(url,param,function(data){
    		  			   if(data.err==0)
    		  			   {
    		  				   var html='<option value="">--选择--</option>';
    		  				   $.each(data.data,function(i,v){
    		  					 html +='<option value="'+v.id+'">'+v.dname+'</option>'
    		  				   })
    		  				   $(".secondTypeR").html(html);
    		  			   }
    		  			   else
    		  			   {
    		  				   ErrTiShi("操作失败");
    		  			   }
    		  		   	});
    				   
    			   });
  			
           });
           
	  </script>